package com.wawayaya.db.entitydao;


import com.wawayaya.bean.Config;
import com.wawayaya.db.DBManager;
import com.wawayaya.db.basedao.ConfigDao;

public class ConfigEntityDao extends BaseEntityDao<ConfigDao, Config,String> {

	@Override
	protected ConfigDao initEntityDao() {
		return DBManager.newSession().getConfigDao();
	}

	public void deleteEntityByKey(String key) {
		getEntityDao().deleteByKey(key);
	}

	@Override
	public void replaceEntity(Config entity) {
		long  ifsuc = getEntityDao().insertOrReplace(entity);
	}
}
